package com.dd.admin.common.security;


import com.dd.admin.common.security.model.JwtUser;
import org.springframework.security.core.context.SecurityContextHolder;

public class SecurityUtil {
     public static JwtUser getLoginUser(){
        JwtUser jwtUser = (JwtUser) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
        return jwtUser;
    }
}
